import request from '@/utils/request'

// 查询合同变更记录列表
export function listLeaseRecord(query) {
  return request({
    url: '/lease/LeaseRecord/list',
    method: 'get',
    params: query
  })
}

// 查询合同变更记录详细
export function getLeaseRecord(id) {
  return request({
    url: '/lease/LeaseRecord/' + id,
    method: 'get'
  })
}

// 新增合同变更记录
export function addLeaseRecord(data) {
  return request({
    url: '/lease/LeaseRecord',
    method: 'post',
    data: data
  })
}

// 修改合同变更记录
export function updateLeaseRecord(data) {
  return request({
    url: '/lease/LeaseRecord',
    method: 'put',
    data: data
  })
}

// 删除合同变更记录
export function delLeaseRecord(id) {
  return request({
    url: '/lease/LeaseRecord/' + id,
    method: 'delete'
  })
}

// 导出合同变更记录
export function exportLeaseRecord(query) {
  return request({
    url: '/lease/LeaseRecord/export',
    method: 'get',
    params: query
  })
}